<h2>Task list</h2>

<p><a href="tasks/add">New task</a></p>

<table>
<thead>
  <tr>
    <th>#</th>
    <th>Summary</th>
    <th>Created</th>
    <th>Modified</th>
    <th>Status</th>
  </tr>
</thead>
<tbody>
<?php foreach ($tasks as $task): ?>
<tr>
  <td><a href="tasks/view/<?php echo $task['Task']['id']; ?>"><?php echo $task['Task']['id']; ?></a></td>
  <td><?php echo $task['Task']['summary']; ?></td>
  <td><?php echo $task['Task']['created']; ?></td>
  <td><?php echo $task['Task']['modified']; ?></td>
  <td><?php echo $task['Task']['status']; ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>